// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
// import axios from 'axios'
import VueRouter from 'vue-router'
import Learning from '@/learning'
import Home from './Home'
import ErrorPage from '@/components/Error'
import HelloPage from '@/components/Hello'
// import Todos from './components/Todos'
// import Todo from './components/Todo'


Vue.config.productionTip = false
// Vue.prototype.$axios = axios
Vue.use(VueRouter)
Vue.use(Learning)

const routes = [
    {path: '/', component: Home },
    {path: '/hello', component: HelloPage},
    {path: '*', component: ErrorPage}//,
]



const router = new VueRouter({
    routes
})

/* eslint-disable no-new */
new Vue({
  el: '#app',
  template: '<App/>',
  components: { App },
    router
})
